package com.yhyl.nursing.job;

import com.yhyl.nursing.service.IContractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Slf4j
@Component    //将容器中加入此对象
public class ContractTask {
     @Autowired
    private IContractService contractService;
     public void UpdateContractStatus() {
         contractService.updateContractStatus();
         log.info("进行了合同状态更新");
     }
}
